import request from '@/api/request'

const baseapi = {
  //校验用户是否登录 
  verifyUserLogin: (data) => request.get('/api/auth/verifyUserLogin', { params: data }),
  //标的字典接口
  projectList: (data) => request.get('/api/dictionaries/projectList', { params: data }),
  //区县字典接口
  mountainList: (data) => request.get('/api/dictionaries/mountainList', { params: data }),
  //无权限组织字典接口
  dictionariesorg: (data) => request.get('/api/dictionaries/org', { params: data }),
  //获取bi跳转 用户id
  authgetBi: (data) => request.get('/api/auth/getBi', { params: data }),
  // 数字经济-招采单点登录
  ssoLogin:(data) => request.get('/api/integrate/ssoLogin', { params: data }),
  // 退出登录
  loginout: (data) => request.get('/login/loginout', { params: data }),
  // 采购方式字典接口
  getProcurementMethod: (data) => request.get('/api/dictionaries/getProcurementMethod', { params: data }),
  // 项目组织树结构字典接口
  getProjectOrgTree: (data) => request.get('/api/transaction/getProjectOrgTree', { params: data }),
  // 组织字典分页接口  
  getPageOrg: (data) => request.post('/api/transaction/getPageOrg',data), 
  // 项目组织树结构字典接口
  getOrgTree: (data) => request.get('/api/transaction/getOrgTree', { params: data }),
  // 有权限组织字典接口
  unitList: (data) => request.get('/api/transaction/unitList', { params: data }),
  // 物料分类字典接口  
  matClassify: (data) => request.post('/api/dictionaries/matClassify',data), 
  // 物料分类字典接口  
  mat: (data) => request.post('/api/dictionaries/mat',data),
  // 地区字典接口  
  area: (data) => request.get('/api/dictionaries/area', { params: data }), 
  // 付款方式字典接口  
  payment: (data) => request.get('/api/dictionaries/payment', { params: data }),
  // 付款方式字典接口  
  paymentPercent: (data) => request.get('/api/dictionaries/paymentPercent', { params: data }),
  // 角色权限
  verifyUserRole: (data) => request.get('/api/auth/verifyUserRole', { params: data }),

}

export default baseapi
